#ifndef GESTIONCARTE_H
#define GESTIONCARTE_H

#include <QMainWindow>
#include <QApplication>
#include <QtGui>
#include "dialog.h"
#include "map.h"
#include "tileset.h"
#include "unit.h"

namespace Ui { class GestionCarte; }

class GestionCarte : public QMainWindow
{
    Q_OBJECT

public:
    explicit GestionCarte(QWidget *parent = 0);
    ~GestionCarte();
    Tileset* getTileset() { return m_tileset; }
    Map* getMap() { return m_map; }
    void setCoord(int x, int y, bool b);
    void modifierMap(int xx, int yy);
    void setInfos(int x, int y);
    void initialiserMap();
    void setBool(bool b) { this->mapOuCharacter = b; aEnlever = false;}

private:
    Ui::GestionCarte *ui;
    dialog *dial;
    Map* m_map;
    Tileset* m_tileset;
    int x;
    int y;
    int xx;
    int yy;
    bool mapOuCharacter;
    bool aEnlever;

private slots:
    void on_actionNouvelle_carte_activated();
    void on_actionModifier_une_carte_activated();
    void on_actionSupprimer_une_carte_activated();
    void on_Button_Sauvegarder_clicked();
    void on_actionRetour_au_menu_principal_activated();
    void on_BouttonRemplir_clicked();
    void on_BouttonEnlever_clicked();
};

#endif // GESTIONCARTE_H


